<?php
namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

class ArticlePv extends Model
{

    use SoftDelete;

    public function user()
    {
        return $this->hasOne(User::class,"id","uid");
    }

    public function art()
    {
        return $this->hasOne(Article::class,"id","aid");
    }

    public function content()
    {
        return $this->hasOne(Content::class,"id","cid")
            ->field("id,model_id,cate_id,title,hits,add_time,intro,like");
    }
}
